﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;

namespace GISServer.Core.Client.FeatureService
{
    public class Root
    {
        public Root()
        {
            ServiceDescription = string.Empty;
            Layers = new List<Layer>();
            Tables = new List<Table>();
        }
        [JsonProperty("serviceDescription")]
        public string ServiceDescription { get; set; }
        [JsonProperty("layers")]
        public List<Layer> Layers { get; set; }
        [JsonProperty("tables")]
        public List<Table> Tables { get; set; }

        public string ToJson()
        {
            return Utilities.Serializer.ToJson(this);
        }
    }
}
